package com.lancoo.ccas53.pojo.response.basicPlatform;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName BaseCollege
 * @Description 基础平台学院-管理员-专业--年级
 * @Author quin
 * @Date 2023/3/1 15:43
 */
@NoArgsConstructor
@Data
public class BaseCollege {
    @JsonProperty("CollegeID")
    private String collegeID;
    @JsonProperty("Admins")
    private List<AdminsDTO> admins;
    @JsonProperty("Specialitys")
    private List<SpecialitysDTO> specialitys;
    @JsonProperty("CollegeName")
    private String collegeName;

    @NoArgsConstructor
    @Data
    public static class AdminsDTO {
        @JsonProperty("UserName")
        private String userName;
        @JsonProperty("CollegeID")
        private String collegeID;
        @JsonProperty("UserID")
        private String userID;
        @JsonProperty("UserClass")
        private Integer userClass;
    }

    @NoArgsConstructor
    @Data
    public static class SpecialitysDTO {
        @JsonProperty("Grades")
        private List<GradesDTO> grades;
        @JsonProperty("SpecialityID")
        private String specialityID;
        @JsonProperty("SpecialityName")
        private String specialityName;

        @NoArgsConstructor
        @Data
        public static class GradesDTO {
            @JsonProperty("GradeName")
            private String gradeName;
            @JsonProperty("GradeID")
            private String gradeID;
        }
    }
}
